package domain

type Rule struct {
	ID                int64    `proto:"id" db:"id"`
	Name              string   `proto:"name" db:"name"`
	Description       string   `proto:"description" db:"description"`
	Status            string   `proto:"status" db:"status"`                         // Status 启用状态
	ConversationType  string   `proto:"conversation_type" db:"conversation_type"`   // ConversationType 会话类型
	TargetUserRole    []string `proto:"target_user_role" db:"target_user_role"`     // TargetUserRole 目标用户角色
	Permission        []string `proto:"permission" db:"permission"`                 // Permission 操作权限
	MessageHanding    []string `proto:"message_handing" db:"message_handing"`       // MessageHanding 消息处理策略
	TimeConditions    []string `proto:"time_conditions" db:"time_conditions"`       // TimeConditions 时间条件
	TriggerConditions []string `proto:"trigger_conditions" db:"trigger_conditions"` // TriggerConditions 触发条件
	Action            []string `proto:"action" db:"action"`                         // Action 用户处理策略
	Version           float64  `proto:"version" db:"version"`                       // Version 程序版本
	CreateTime        string   `proto:"create_time" db:"create_time"`               // CreateTime 创建时间
	UpdateTime        string   `proto:"update_time" db:"update_time"`               // UpdateTime 更新时间
	DeleteTime        string   `proto:"delete_time" db:"delete_time"`               // DeleteTime 删除时间
}
